home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1997 #3 / Amiga Plus CD - 1997 - No. 03.iso / pd / programmierung / vbcc / doc / history < prev    next >
Encoding:
Text File  |  1997-03-01  |  40.0 KB  |  861 lines

  1. vbcc is (c) in 1995-97 by Volker Barthelmann
  2.  
  3. (cga68k): changes in the code generator for amiga68k/unix68k
  4. (cgi386): changes in the code generator for i386
  5. (cla68k): changes in the C library for amiga68k
  6. (vca68k): changes in the compiler frontend for amiga68k
  7. (vcu68k): changes in the compiler frontend for unix68k
  8.  
  9.  
  10. Changes since V0.4f
  11.  
  12. - bug fix: there was a bug with local register allocation and optimizing
  13. - bug fix: t_max[CHAR] was wrong :-) (cga68k, cgi386, cgppc)
  14. - ixemul-support updated (cla68k)
  15. - bug fixed: initialized arrays with unspecified size always increased size
  16.              of stack frame
  17. - work on the i386 code generator (cgi386)
  18. - fixed bug with register parameters and optimizer
  19. - a4 is saved when geta4 is called (cga68k)
  20.  
  21. Changes since V0.4e
  22.  
  23. - small improvements on the i386 code generator (cgi386)
  24. - bug fix: minor bug in loop-unrolling with TEST
  25. - bug fix: there was a check missing in type_expr/CALL
  26. - bug fix: do not use addressing modes if base register was freed (cga68k)
  27. - added new m040.lib by Aki M Laukkanen (cla68k)
  28. - added elf-support and -elf option to i386 code generator (cgi386)
  29. - bug fixed: _ctype_.c in vcs.lib had been built with large data (cla68k)
  30. - __reg added
  31. - added support for parameter passing in registers
  32. - small changes in local optimizing register allocation
  33.  
  34. Changes since V0.4d
  35.  
  36. - arguments for mieee-functions are passed in different order now; rebuilt
  37.   mieee.lib (cga68k, cla68k)
  38. - changed directory-structure, Makefile and frontend
  39. - bug fixed: certain struct initializations got the alignment wrong (bug
  40.              was probably introduced recently)
  41. - included new PhxLnk
  42. - included startup-code for ixemul.library by Frank Wille
  43. - changed default vc.config (-Ivinclude: put at the end)
  44. - better error handling when parsing enums
  45. - fixed a bug with struct-assigns and improved them a bit (cga68k)
  46. - moved a } in killsp()
  47. - slightly better error-handling of function-declarations
  48. - warning 121 only applies to storage-class extern
  49. - bug fixed: declaration for remove() was missing in stdio.h (cla68k)
  50. - bug fixed: extra ','s in function calls cause a diagnostic now
  51. - added a missing ';' in vconfig-sources
  52. - added missing includes and removed incorrect ',' in vbrowse-sources
  53.  
  54. Changes since V0.4c
  55.  
  56. - bug fixed: delayed-popping was corrupt in certain cases (cga68k, cgi386)
  57. - cleanup_cg() added
  58. - shortcut() added
  59. - fixed bug in the optimzer (av.c and regs.c)
  60. - modified handling of character-constants with multiple chars
  61. - cleaned up a lot of internal things and using the target's arithmetic
  62.   where necessary - required changes in the code generators
  63. - simple-regs will assign scratch-registers again if no functions are called
  64. - fixed bug in simple-regs
  65.  
  66. Changes since V0.4b
  67.  
  68. - -no-multiple-ccs added
  69. - warning 119 is not displayed for static vars any more
  70. - bug fixed: global copy propagation probably didn't really do anything
  71. - better support for multiple condition code registers
  72. - started code-generator for ppc
  73. - changed directory-structure
  74.  
  75. Changes since V0.4a
  76.  
  77. - bug fixed: the new PUSH still didn't work ok in all cases (cga68k)
  78. - bug fixed: certain (useless) comparisons between unsigneds and constants
  79.              generated wrong code
  80.  
  81. Changes since V0.4
  82.  
  83. - bug fixed: isalpha must not be true for anything but a-z/A-Z (cla68k)
  84. - new PhxLnk
  85. - bug fixed: aliasing info was incorrect in some mustconvert-cases
  86. - bug fixed: the assert-macro didn't work (cla68k)
  87. - bug fixed: the offset of addressing modes was not cleared generating
  88.              problems with the new PUSH (cga68k)
  89. - bug fixed: assign() had problems with qualified floats/doubles (cga68k)
  90.  
  91. Changes since V0.3i
  92.  
  93. - rebuilt libraries with -O2 (cla68k)
  94. - warning 216 added
  95. - bug fixed: initializations of structs containing unnamed bitfields were
  96.              not handled correctly
  97. - [f|s]printf and [f|s]scanf are always recognized if declared correctly
  98. - modified cp.c to use aliasing info
  99.  
  100. Changes since V0.3h
  101.  
  102. - bug fixed: aliasing info with arrays and structs wasn't always correct
  103. - #pragma opt added
  104. - added __v0[s|f]printf to vc.lib and modified stdio.h (cla68k)
  105. - added replacing printf/scanf-like functions
  106. - warning 215 added
  107. - warning 214 added
  108. - looking at format strings of printf/scanf and similar functions
  109. - #pragma printflike/scanflike added
  110. - handling of #pragma changed a bit
  111. - warning 213 added
  112. - bug fixed: calls strlen, strcpy and memcpy were inlined even if they had
  113.              no external linkage
  114. - warning 212 added
  115. - warning 211 added
  116. - bug fixed: t_max[UNSIGNED|LONG] wasn't set correctly (cga68k)
  117. - warning 210 added
  118. - warning 170 displays line number
  119. - INIC supported for error-messages
  120. - changed ierror-macro and eliminated multiple __FILE__-expansions reducing
  121.   size of executable a bit
  122. - improved debugging output (cga68k)
  123. - vc prints size of generated executable with -v (vca68k)
  124. - vc puts temporary files in T: unless -notmpfile is specified (vca68k)
  125. - improved debugging output (cga68k)
  126. - added geta4() (cla68k)
  127. - moved a few killsp()s
  128. - added elementary source-level-debugging helps (cga68k)
  129. - added -g to activate symbol-debugging with PhxAss (cga68k)
  130.  
  131. Changes since V0.3g
  132.  
  133. - bug fixed: ceil() and floor() have been missing in m881.lib (cla68k)
  134. - bug fixed: prototype for fputs was wrong (cla68k)
  135. - improved pushing of larger objects (cga68k)
  136. - added chdir() to extra.lib (cla68k)
  137. - bug fixed: sometimes dc.l xyz(a4) was generated (cga68k)
  138. - fixed some memory-leaks with alias-info
  139. - bug fixed: always_reached was not reliable
  140. - bug fixed: frequency-reduction sometimes created the wrong type if a
  141.              computation (but not the whole IC) was moved
  142. - slightly modified calc_movable()
  143. - used old version of always_reached again
  144. - address-of struct/union/array ICs were sometimes not moved out of loops
  145. - redesigned handling of used/changed objects and aliasing information
  146.  
  147. Changes since V0.3f
  148.  
  149. - bug fixed: space for at least one var on the stack has been allocated
  150.              even if no var was ever used
  151. - changed optimizing register assignment slightly
  152. - bug fixed: type-based alias-optimization wasn't always correct
  153. - bug fixed: the new reaching-definitions did not handle compound types
  154. - bug fixed: strength-reduction created problems with certain configurations
  155.              of nested loops and splittable induction-vars
  156. - bug fixed: strength-reduction of x-ind_var did not negate the induction
  157. - vbcc built itself, vc and vcpp succesfully under NetBSD-Amiga 1.1
  158. - alignment of arrays in structures now depends on the array type
  159. - rebuilt mieee.lib, vc.lib and vcs.lib to use new return type passing (cla68k)
  160. - modified returning of larger types and added -no-fp-return and
  161.   -no-mreg-return (cga68k)
  162. - returning of structures in registers is allowed
  163. - 8bit constants are copied in registers for 060 again (cga68k)
  164. - elimination of a dead GETRETURN does not count as a change any more
  165. - moved the computation of areached out of the frequency-reduction-loop
  166. - made printing of fp-constants a bit better (cga68k)
  167. - added -gas (cga68k)
  168. - bug fixed: in certain cases a TEST #const was generated
  169. - included new fd2lib/MakeALIB.script/DoPktn.c by Johnny Tevessen
  170. - removed some gcc-specific-#includes from amiga.lib (cla68k)
  171. - modified representation of reaching-definitions and its use in
  172.   constant-propagation and frequency-/strength-reduction
  173. - bug fixed: declaration for fputs() was missing in stdio.h (cla68k)
  174. - added -no-alias-opt
  175. - alias-analysis by type added; currently used in:
  176.   - active-variable-analysis
  177.   - reaching-definitions-analysis
  178.   - available-expression-analysis
  179.  
  180. Changes since V0.3e
  181.  
  182. - changed vbrowse to be compatible with new error-mechanism
  183. - changed error-mechanism somewhat
  184. - added -iso
  185. - meaning of -ansi changed
  186. - strength-reduction uses the same induction variable for equivalent
  187.   operations now
  188. - bug fixed: another one with addressing-modes (cga68k)
  189. - bug fixed: end of basic blocks was not always correctly recognized and
  190.              illegal addressing modes could have been used when optimizing
  191.              (cga68k)
  192. - minor changes to time.h (cla68k)
  193. - lea is sometimes used for ADDI2P/SUBIFP (cga68k)
  194. - improved use of postincrement (cga68k)
  195. - pea is used with addressing-modes now (cga68k)
  196. - constant 0s are not copied into data registers any more (cga68k)
  197. - changed global register-allocation; starts with outermost loops and works
  198.   a bit different now
  199. - bug fixed: if/while/for did generate corrupt code if the condition was
  200.              constant 0 and the body contained a labeled-statement
  201. - bug fixed: simple_regs() did assign variables to scratch-registers even
  202.              if the function contained function-calls sometimes
  203. - bug fixed: there was a hardcoded sizeof(POINTER)==4 in szof()
  204. - bug fixed: changed the init-value for local_offset from 4 to maxalign
  205.              and adapted probj2()
  206. - some peephole-optimizations added
  207. - -fp-associative added
  208. - bug fixed: ICs with one source equal to the target were considered as a
  209.              use(gen) preventing elimination of such ICs in loops
  210. - bug fixed: sometimes branch-instructions were moved incorrectly
  211. - strength-reduction added
  212. - bug fixed: peephole() did some not-so-nice things when folding pointer
  213.              operations; probably not fatal in 68k code-generator
  214. - moved some parts from machine.c to other files and made the separation
  215.   of machine-dependent parts somewhat nicer
  216.  
  217. Changes since V0.3d
  218.  
  219. - bug fixed: frequency-reduction (and perhaps cse, too) got the type of
  220.              added temporaries wrong for ADDRESS/ADDI2P etc.
  221. - bug fixed: sometimes the test in for/while loops was corrupt if it contained
  222.              type-conversions in optimizing compilation
  223. - bug fixed: function-inlining did complain about functions returning struct
  224. - bug fixed: there was a problem with copy-propagation and structs
  225. - bug fixed: labs() was called abs() (cla68k)
  226. - added inlining of several functions to the header files (cla68k)
  227. - bug fixed: vbcc tried to inline varargs functions which usually resulted
  228.              in an error
  229. - frequency-reduction added
  230. - bug fixed: constant folding when optimizing did a division by zero when
  231.              folding a floating-point division with ]-1;0[ v ]0;1[
  232. - bug fixed: the 32bit division functions in vc.lib were buggy and got in
  233.              an (almost) endless loop with certain arguments; as vbcc
  234.              uses them it could get stuck when folding certain constants.
  235. - bug fixed: certain definitions haven't been set correctly at the start
  236.              of a function leading to wrong reaching definitions and corrupt
  237.              constant propagation in some cases
  238. - bug fixed: copy propagation did replace argument of ADDRESS
  239. - vc passes -+ through to vcpp (vca68k)
  240.  
  241. Changes since V0.3c
  242.  
  243. - vbcc accepts a space after '=' in its option (used by vc)
  244. - improved copy propagation; it was very conservative sometimes
  245. - bug fixed: there were parentheses missing somewhere in cp.c
  246. - bug fixed: restoring of scratch registers after function-calls was buggy
  247.              in optimizing compilation
  248. - distributed Makefile should be ready to use with vbcc now, Makefile.generic
  249.   should be easy to use with another compiler
  250. - polished Makefiles (added rules for vbccs etc.)
  251. - -o option of vc works with intermediate files, too (vca68k)
  252. - extra.lib included in source tree (cla68k)
  253. - vconfig included in source tree
  254. - bug fixed: the putc-macro in stdio.h wasn't ok, I think (cla68k)
  255. - vcpp was configured to accept C++-comments by default - this has been
  256.   corrected; add '-+' to the -pp lines in vc.config if you insist
  257. - -strip-path added
  258. - vc and vbcc accept -o=executable now
  259. - changed the call to vcpp in vc.config (no stdout-redirection any
  260.   more) (vca68k)
  261. - bug fixed: mysupp.c closed dup'ed files twice (cla68k)
  262. - replaced strstr in vc.lib by a version written by Kasper Graversen (cla68k)
  263. - -dontkeep-initialized-data causes vbcc not to keep initialized data in
  264.   memory and can therefore reduce memory consumption
  265. - warning 118 is no ANSI-violation
  266. - warning 207 added
  267. - checking of type-specifiers/qualifiers is now more strict
  268. - changed text for error 58
  269. - bug fixed: some initializations with additional braces were rejected
  270. - some minor changes to vc.doc (vca68k)
  271. - changed text for error 93 (errors.h, errors.doc, VBCCMessages.guide)
  272. - bug fixed: register assignment in optimizing compilation made errors
  273.              due to wrong BRA interpretation
  274.  
  275.  
  276. Changes since V0.3b
  277.  
  278. - minor changes to loop.c
  279. - bug fixed: fread didn't always return correct results (cla68k)
  280. - bug fixed: there were some 'extern's missing in vbc.h causing e.g. the
  281.              old problems with source layout
  282. - rebuilt vcpp to allow more than 10 open files (ouch!)
  283. - bug fixed: under certain circumstances global common subexpressions
  284.              were not replaced correctly if use and one evaluation were
  285.              in the same basic block
  286.  
  287.  
  288. Changes since V0.3a
  289.  
  290. - vc.lib/vcs.lib/mieee.lib/m881.lib/m040.lib/vbcc/vc rebuilt
  291. - div/ldiv should be conforming now
  292. - ungetc should now work even if it is the first action to a stream (cla68k)
  293. - fflush(0) only affects files in output mode (cla68k)
  294. - removed const qualifier from the ctype-array (cla68k)
  295. - changed the ctype-functions to use the array (cla68k)
  296. - added #definition of NULL to stdio.h (hope that's correct) (cla68k)
  297. - changed several stdio-functions and added line-buffering (cla68k)
  298. - bug fixed: setbuf/setvbuf was broken (cla68k)
  299. - bug fixed: vbrowse didn't ask for gadtools.library V39
  300. - vbrowse opens a window that fits on a standard workbench by default now
  301. - bug fixed: there was a bug in newmalloc.c (cla68k)
  302. - bug fixed: included new version of the pooled memory routines for amiga.lib
  303.              and rebuilt amiga.lib; hopefully works with OS2.0 now (cla68k)
  304. - bug fixed: struct-declaration-structs have been freed too early; current
  305.              solution is not very nice, but should work
  306. - bug fixed: there should not be restrictions on the source layout any more
  307.              (problem with look-ahead fixed)
  308. - bug fixed: identifiers longer than MAXI could cause problems
  309. - bug fixed: passing incomplete types to functions without prototypes did
  310.              not cause a diagnostic
  311. - changed the internal representation of structs/unions/prototypes
  312.   - some non-conforming things in the source corrected
  313.   - hardcoded limit for struct sizes etc. eliminated
  314.   - type of incomplete structs should be ok now
  315. - bug fixed: code after an always false if etc. wasn't generated even if
  316.              it contained a label
  317.  
  318.  
  319. Changes since V0.3
  320.  
  321. - vc passes options starting with -D or -I through to the preprocessor -
  322.   the format for -pp/-ppv has changed (vca68k)
  323. - vc writes names of objects for the linker to a temporary file if they are
  324.   very long (vca68k)
  325. - vc supports option -nostdlib to prevent linking with standard-startup/libs
  326.   additional entries -l2/-l2v are necessary in vc.config (vca68k)
  327. - bug fixed: perror was called prerror in the library - ouch; Make-scripts
  328.              changed and vc.lib/vcs.lib rebuilt (cla68k)
  329. - bug fixed: perror-prototype was incorrect (cla68k)
  330. - added missing prototype for strerror() to string.h (cla68k)
  331. - added missing prototype for strtok() to string.h (cla68k)
  332. - rebuilt amigas.lib and vcs.lib (cla68k)
  333. - bug fixed: constant data in code-sections was addressed via a4 with -sd
  334.              (cga68k)
  335. - bug fixed: conversion between pointers and integers may not be omitted in
  336.              most cases (cga68k)
  337. - branches after TEST unsigned are changed now and tst may be omitted (cga68k)
  338. - rebuilt amiga.lib (cla68k)
  339. - bug fixed: fd2lib didn't work with varargs-functions expecting the
  340.              argument-list in a data register (cla68k)
  341. - added several varargs-functions to fd2lib (cla68k)
  342. - edited the Make#?lib.scripts (cp->copy, *.c->#?.c) (cla68k)
  343. - added a few xdefs to amiga.lib (cla68k)
  344.  
  345.  
  346. Changes since V0.2v
  347.  
  348. - changed the version number :-)
  349.  
  350.  
  351. Changes since V0.2u
  352.  
  353. - rebuilt vc.lib and vcs.lib
  354. - bug fixed: the vbcc-compiled cpp did not close opened files; now the
  355.              routines in mysupport.c close all opened files at exit
  356. - bug fixed: there was still an error that caused wrong line numbers to be
  357.              printed in messages when an external preprocessor was used
  358. - compiling with NO_OPTIMIZER #defined and linking without av.o, cp.o, cse.o,
  359.   flow.o, loop.o and rd.o produces a smaller executable that doesn't
  360.   include the global optimizer
  361. - compiled the cpp from the lcc-distribution with vbcc and changed vc.config
  362.   to call this one rather than dcpp (vca68k)
  363. - bug fixed: removed some float.h scratch from limits.h (cla68k)
  364. - bug fixed: some code generation errors fixed (cga68k)
  365. - bug fixed: addressing-modes were sometimes used where they shouldn't (cga68k)
  366. - bug fixed: sometimes wrong code was generated for a op= b; expressions
  367. - bug fixed: some optimizer routines sometimes called mymalloc(0) which
  368.              caused mymalloc to abort with C-libraries returning a null
  369.              pointer; fixed by changing the size to 1 in mymalloc (not
  370.              very nice, but simple)
  371. - added alternative malloc-routines that use the Amiga's AllocPooled-Rotuines
  372.   (libsrc/stdlib/newmalloc) (cla68k)
  373. - bug fixed: in the handling of switch-statements the addressing-mode-pointers
  374.              were set to zero too early and therefore later overwritten
  375.              with scratch
  376. - bug fixed: in some places memory that was already free'd was accessed under
  377.              certain circumstances
  378. - replacing multiplications by shifts was not done in recent versions (cga68k)
  379. - some minor code generation improvements (cga68k)
  380. - bug fixed: copies of local auto variables of inlined functions got
  381.              non-empty identifiers which caused corrupt code generation
  382.              under certain circumstances
  383. - bug fixed: function-inlining didn't work with return-values that must be
  384.              passed via pointer
  385. - bug fixed: variables in IDENTIFIER-nodes were searched with find_var()
  386.              in gen_code() again, rather than using a copy from
  387.              type_expression(); this generated corrupt code in certain cases
  388.              of function-inlining
  389. - rebuilt showerr and tovbr using small-data with new PhxLnk
  390. - added special inlining of strlen() and strcpy()
  391. - bug fixed: the amiga68k code generator assumed long-alignment with
  392.              inline_memcpy
  393. - bug fixed: tst may not be omitted if operand is unsigned (cga68k)
  394. - bug fixed: inline_memcpy was not only used when optimizing
  395. - bug fixed: the line number displayed in diagnostics were sometimes wrong
  396.              if an external preprocessor with # <line> "file" was used
  397. - bug fixed: function inlining messed up labels of static local vars
  398.  
  399.  
  400. Changes since V0.2t
  401.  
  402. - removed any 060-specific modulo-handling again (060 has div?l.l) (cga68k)
  403. - some minor code generation improvements with arithmetic instructions and
  404.   constants (cga68k)
  405. - warning for not correctly handled empty struct-declarations added
  406. - bug fixed: initializations of incomplete structs resulted in infinite
  407.              error loops
  408. - improved diagnostics regarding incomplete types
  409. - bug fixed: nested calls to inlined functions were broken
  410. - address-of instructions are subject to common-subexpression-elimination
  411. - bug fixed: function-inlining sometimes assigned the arguments to the wrong
  412.              variables
  413. - #pragma only-inline on/off added
  414. - some associativity optimizations are done with ADDI2P, too
  415.  
  416.  
  417. Changes since V0.2s
  418.  
  419. - some minor changes and bug fixes on vbrowse
  420. - program showerr added
  421. - bug fixed: if the return value was moved to an address register this was
  422.              supposed to set the condition codes (cga68k)
  423. - addq #const,a7 is no longer supposed to destroy condition-codes (cga68k)
  424. - bug fixed: sometimes the popping of function arguments was moved before
  425.              a call (cga68k)
  426. - added #pragma type to display the type of an expression
  427. - bug fixed: declarations of functions within functions were buggy in 0.2r,
  428.              because the prototype of the inner function was freed to early
  429. - bug fixed: vbcc assumed that "fmove.l fpx,ea" sets condition-codes for
  430.              ea (cga68k)
  431. - bug fixed: TEST-instructions were omitted even if the type was different
  432.              (could probably only happen with dirty things) (cga68k)
  433. - bug fixed: offsets for temporary buffers for scratch-registers were
  434.              sometimes incorrectly calculated (only without optimizing);
  435.              scanf() of the recent mieee.lib and m040.lib versions was
  436.              broken due to that bug
  437. - bug fixed: string constants are only allowed as initalizers for array of
  438.              char now
  439. - bug fixed: handling of long float/double is now a bit better
  440. - changed flags of a few error messages
  441. - bug fixed: problem with unexpected end of file errors fixed and some
  442.              improvements in killsp() and translation_unit()
  443. - function calls are never separated from the corresponding PUSHs now (this
  444.   might confuse the delayed popping of code-generators)
  445. - if all successors of a block have the same instruction at the beginning
  446.   it is moved to the predecessor in certain cases
  447. - space for local variables is better used in optimizing compilation now
  448. - function inlining doesn't increase label-numbers any more
  449. - handling of local registers and pointer dereferencing improved a bit
  450.   (temporary vars that get dereferenced should almost always be
  451.   assigned a proper register now)
  452. - bug fixed: rearranging of array-accesses was buggy in 0.2s
  453. - bug fixed: a previous declaration of a function was not visible in the
  454.              function definition in 0.2s
  455. - changed the ctype macros a bit (cla68k)
  456. - bug fixed: use of addressing modes was buggy in 0.2s (therefore the
  457.              last mieee.lib was broken) (cga68k)
  458. - code generation for modulo improved for 020+ (incl. 060) (cga68k)
  459.  
  460.  
  461. Changes since V0.2r
  462.  
  463. - bug fixed: conversions between unsigned<->floating point should now
  464.              always be correct with mieee.lib (cga68k) (cla68k)
  465.              mieee.lib rebuilt
  466. - if -noasm is specified the .asm file is no longer created
  467. - gen_vars() now does not create output if there were errors or -noasm
  468.   was specified (this also fixes a bug that created infinite internal
  469.   errors after certain corrupt initializers)
  470. - bug fixed: vbcc did not correctly recognize if opening of the input file
  471.              failed in V0.2q/r
  472. - some optimizations to improve array accesses
  473. - VARADR objects are subject for copy propagation now
  474. - add/sub with constant addresses gets folded (opt only)
  475. - divsl.l is not used when -cpu=68060 is selected (cga68k)
  476. - switch-statements can be implemented by SUB/TEST/BEQ sequences rather
  477.   than COMPARE/BEQ sequences (selectable with SWITCHSUBS)
  478. - bug fixed: no error for duplicate case labels was printed
  479. - bug fixed: detecting of loops did identify loops with jumps out of
  480.              the loop as normal loops
  481. - bug fixed: scope of function prototypes should now be correct
  482. - bug fixed: function parameters were not marked as DEFINED and therefore
  483.              redefinition of function parameters did not cause errors
  484.  
  485. Changes since V0.2q
  486.  
  487. - if several basic blocks have the single same successor and the last
  488.   last instruction of those statements is identical it is moved to the
  489.   common successor
  490. - for CPUs>=68040 8bit constants are not copied to registers (cga68k)
  491. - popping of function arguments is done one instruction before a TEST inst.
  492.   (I thought this was necessary to avoid certain tst-instructions, because
  493.   my manual says addq #x,a7 changes condition codes - however this seems
  494.   to be wrong) (cga68k)
  495. - Thorsten Schaaps' preprocessor integrated into vbcc
  496.   files vbpp.h and preproc.c added
  497. - new options:
  498.   - -nested-comments allows nested comments (not ANSI conforming)
  499.   - -cpp-comments allows C++ style comments (not ANSI conforming)
  500.   - -macro-redefintion allows redefinition of macros (not ANSI conforming)
  501.   - -no-trigraphs prevents expansion of trigraphs (not ANSI conforming)
  502.   - -no-preprocessor prevents use of the bultin preprocessor
  503.   - -E only preprocesses the file to <file>.i
  504.  
  505.  
  506. Changes since V0.2p
  507.  
  508. - bug fixed: strncat() did not append a 0, but behaved like strncpy (cla68k)
  509. - bug fixed: sizeof(uncomplete type) did not cause an error message
  510. - bug fixed: wrong code was generated for ?: if the condition evaluated
  511.              to a scratch-var pointing somewhere
  512. - bug fixed: pointer:0 and 0:pointer was not allowed in conditional-exp
  513. - bug fixed: delayed popping produced wrong code with nested function calls
  514. - support for #line directive of most preprocessors added
  515. - several additions made to must_convert()  (cga68k)
  516. - realloc() added to vc.lib (cla68k)
  517. - target-specific optimization options have been separated from the
  518.   -O flag
  519. - the Amiga68k code generator now accepts the following flags to replace
  520.   the former corresponding flags in the -O option:  (cga68k)
  521.   - -use-framepointer
  522.   - -no-addressing-modes
  523.   - -no-delayed-popping
  524. - bit 12 (4096) in -O activates function inlining; previously defined
  525.   functions are inlined in their caller, depending on the size of the
  526.   function
  527. - new option -inline-size can be used to in-/decrease the number of
  528.   functions to be inlined; default=30 - higher values mean more functions
  529.   get inlined
  530.  
  531.  
  532. Changes since V0.2n/0.2o
  533.  
  534. - new option -optpasses=n sets the maximum number of optimizer passes
  535. - bug fixed: ADDI2P with a short integer sometimes was not converted if the
  536.   target was a data register
  537. - constant data is placed in the code sections as long as -const-in-data
  538.   is not specified (cga68k)
  539. - m040.lib started (cla68k)
  540. - unnecessary tst instructions are sometimes eliminated (cga68k)
  541. - constants -128<=x<128 are not copied in a register for SETRETURN and PUSH
  542. - COMPARE x,#0 should now always be converted to TEST x
  543. - bug fixed: a label-statement at the end of a block caused an error
  544. - bug fixed: sometimes still used type node was freed in alg_opt
  545. - bug fixed: unsigned function arguments were sometimes converted to signed
  546. - calling scheme for ieee and ldiv functions changed (cga68k)
  547. - usage of addressing modes with ieee and ldiv functions prohibited (cga68k)
  548. - bug fixed: files opened for append were deleted, oops (cla68k)
  549. - use of addressing modes slightly changed (cga68k)
  550. - modf, ldexp and frexp added to mieee.lib and m881.lib (cla68k)
  551. - bug fixed: unsigned integers were not allowed in case labels
  552. - bug fixed: push problem
  553. - bug fixed: cmp x,#0 was sometimes converted to tst x without changing the
  554.   following branching instruction (cga68k)
  555. - for and while loops are generated differently when optimizing is
  556.   activated (first testing of the loop condition can sometimes be deleted)
  557. - bug fixed: isquickkonst2 now tests for 0<x<=8 rather than 0<=x<=8 (ouch) (cga68k)
  558. - a>>0=a<<0=a and a few other algebraic optimizations added
  559. - insert_const2() added and insert_const() changed
  560. - saverestoreregs() now has a stack for the pushed register-lists (cga68k)
  561.   (removed again, because saveregs/restoreregs has now been removed and
  562.    mechanism changed)
  563. - bug fixed: delayed popping of function arguments corrected (cga68k)
  564. - delayed popping and omitting of framepointer can now be turned on
  565.   separately (256 for framepointer, 512 for delayed popping)
  566. - bug fixed: stackoffset was sometimes incorrectly calculated
  567. - internal mechanism for passing function return values changed, structure
  568.   returns should be reentrant now
  569.   some library routines may have to be recompiled
  570.   mieee.lib was rebuilt to use the new mechanism (cla68k)
  571. - op a,b->scratchvar; move scratchvar->c is combined to op a,b->c
  572. - handling of optimizations slightly changed
  573. - bug fixed: open_out() allocated a buffer one byte too small if the input
  574.   file contained no period
  575.  
  576. - bit 2... in -O option activate heavy optimizations
  577.   - scratchvars are not assigned to registers during IC generation
  578.   - labels are optimized and a flowgraph is constructed
  579.   - branches to branches, branches to the following instruction etc. are
  580.     optimised and unreachable code is eliminated
  581.   - constants are propagated and folded
  582.   - common subexpressions are eliminated
  583.   - copies are propagated
  584.   - active variables are analysed and dead assignments eliminated
  585.   - temporary variables are recognized and assigned to registers
  586.   - registers are assigned differently using information on active variables
  587.     and loop structure
  588.  
  589. - new source files added/changed:
  590.   - opt.h : declarations etc. used in optimization routines
  591.   - opt.c : general routines, peephole optimizations and control of
  592.             optimization passes
  593.   - flow.c: construction of flowgraphs, jump optimizations and other
  594.             control-flow related routines
  595.   - regs.c: register allocation
  596.   - av.c  : analysis of active variables and elimination of dead assignments
  597.   - rd.c  : analysis of reaching definitions, constant propagation and
  598.             constant folding
  599.   - cse.c : common subexpression elimination
  600.   - cp.c  : copy propagation
  601.   - loop.c: analysis of loops and optimizations in loops
  602.  
  603. - the following warnings have been added
  604.   - use of variable before its initialization (with optimizer only)
  605.   - dead assignments (opt only)
  606.   - definition of global functions without prior declaration
  607.   - non-void functions without return-statements
  608.   - assignment in comparison context
  609.   - weird code (opt only)
  610.  
  611.  
  612. Changes since V0.2m
  613.  
  614. - if -ansi is specified assignments between differently signed pointers
  615.   will cause an error
  616. - -dontwarn=n disables all warnings if n<0
  617. - -warn option added to enable certain warnings, usage like -dontwarn
  618. - the following warnings have been added
  619.   - implicit function declarations
  620.   - function calls without prototype
  621.   - use of #pragma
  622.   - assignment/cast of integers to narrower type
  623.   - cast of pointer to pointer with stricter alignment requirements
  624.   - redundant comparisons with unsigned values
  625. - stupid, braindead error in codegenerator fixed (wrote to string constant
  626.   and caused segmentation faults on systems with memory protection) (cga68k)
  627. - TimeDelay new in amiga.lib (has to be rebuilt)
  628. - ctype.h now has function prototypes and macros should be ok with negative
  629.   arguments
  630. - macros in stdio.h now accept void* pointers and do some fancy type checking
  631.   (cla68k)
  632. - temporary hack to display correct filename and line number in error
  633.   messages
  634. - vc now handles filenames with spaces and always uses the complete path
  635.  
  636.  
  637. Changes since V0.2l
  638.  
  639. - in conditional-expressions the type of the result was used for the
  640.   generated comparison due to a bug
  641. - ceil() and floor() were added to m881.lib (cla68k)
  642. - flags may be specified more than once
  643. - vbcc does not change argv any more
  644. - output of errors/warnings changed and error/warning-texts put in <errors.h>
  645. - % with powers of two is not replaced by an 'and' any more if the operand is
  646.   signed (cga68k)
  647. - entries in the history-file now in (bad) English rather than German
  648. - -dontwarn option added to suppress certain warnings
  649. - type conversions that are unnecessary on a certain machine may be omitted
  650.  
  651.  
  652. Aenderungen seit V0.2k
  653.  
  654. - bei shifts werden keine arithmetischen Typerweiterungen mehr vorgenommen
  655. - endlose Fehlerschleifen sollten erkannt werden
  656. - Anfang eines SmallCode/SmallData-Modus; -sc und -sd schalten den jeweiligen
  657.   Modus ein; deswegen wird auch vermehrt lea/pea verwendet (cga68k)
  658. - startup.o initialisiert nun a4 fuer den SmallData-Modus (cla68k)
  659. - die xref _LVO aus startup entfernt
  660. - fd2lib geschrieben
  661. - diverse Libraryfunktionen geschrieben (vla68k)
  662. - der rechte Teil einer conditional-expression ist jetzt eine
  663.   conditional-expression (war faelschlicherweise expression)
  664. - Verwaltung der sections etwas geaendert; section=-1 am Anfang (cga68k)
  665. - Fehlerbehandlung verbessert: Initialisierungen von unvollstaendigen
  666.   Strukturen/Unionen, Arrays mit size==0 und nicht vorhandene Identifier
  667. - Fehler bei der Erkennung von Fehler-Endlosschleifen behoben; funktioniert
  668.   aber trotzdem nicht immer
  669. - Workaround fuer den compare-bug; leider nicht sehr schoen
  670. - Warnung bei dem Push-Problem
  671. - Ausdruecke hinter return wurden bemaengelt, wenn die Funktion void war
  672. - Funktionsargumente werden bei -O=256 nicht mehr sofort vom Stack geholt
  673.   sondern, wenn moeglich gesammelt und dann auf einmal
  674.  
  675.  
  676. Aenderungen seit V0.2j
  677.  
  678. - vc ruft jetzt 'FreePhxAss' statt 'CPhxAss' auf (vca68k)
  679. - free() verkraftet 0 (cla68k)
  680. - bei aufgetretenen Fehlern wird der Returncode auf EXIT_FAILURE gesetzt
  681. - keine Fehlermeldung bei Files ohne Funktionsdefinition mehr
  682. - Fehler behoben, der bei Verwendung einer Adressierungsart der Form
  683.   (d,ax,dy.w[*z]) zu unnoetigen internal errors und evtl. Schlimmerem
  684.   fuehrte (&7 vergessen) (cga68k)
  685. - difftime() wird in time.h als Makro definiert (cla68k)
  686. - #undef difftime in difftime.c eingefuegt (cla68k)
  687. - Deklaration von rename() in stdio.h korrigiert (cla68k)
  688. - wird Flag 8 (256) bei -O gesetzt, wird a5 nicht mehr als Framepointer
  689.   benutzt (cga68k)
  690. - "offset out of object"-Meldungen geaendert
  691. - string-Funktionen geaendert (cla68k)
  692. - Fehler bei Registerallocation, der auftrat, wenn der Rueckgabewert nicht
  693.   in einem Register zurueckgegen wird, behoben
  694. - Variablendeklaration geaendert; sollte jetzt korrekter sein und tentative
  695.   definitions besser behandeln
  696. - fehlendes ; in stdlib.h eingefuegt (cla68k)
  697. - bei saveregs vor einem function call wird ein Scratchregister, ueber das
  698.   die Funktion aufgerufen wird, nicht gespeichert
  699. - wenn der compare-Fehler auftritt sollte zumindest ein error gemeldet
  700.   werden (cga68k)
  701. - wenn keine lokalen Variablen benutzt werden, wird kein Platz auf dem
  702.   Stack gemacht (cga68k)
  703. - Berechnung des Alignments fuer Kopierschleife sollte jetzt auch ohne
  704.   Framepointer korrekt sein (cga68k)
  705. - vc stark geaendert und config-file eingefuehrt (vca68k)
  706. - bei Meldungen wird der Filename mit ausgegeben
  707.  
  708.  
  709. Aenderungen seit V0.2i
  710.  
  711. - Verbesserung der Codegenerierung fuer FPU-Operationen (cga68k)
  712. - Problem bei USEQ2ASZ und Zusammenfassen von IC/ASSIGN behoben
  713. - floating point nun auch ohne FPU moeglich, noch nicht 100% fehlerfrei (cga68k/cla68k)
  714. - Anfang einer Mathelibrary fuer die IEEE-Libraries (cla68k)
  715.   FloatingPoint<->UnsignedInteger nicht korrekt
  716. - Fehler bei switch(UNSIGNED) behoben
  717. - alignment von struct-members sollte wieder passen
  718. - unsigned char/short->fp mit FPU korrigiert (cga68k)
  719. - ein labeled-statement enthaelt das nachfolgende statement
  720. - _main aus mieee.lib oeffnet die Libraries nun in der richtigen
  721.   Reihenfolge (autsch) (cla68k)
  722. - Test auf am->Register in get_reg() eingebaut
  723. - Fehler bei Kopierschleife behoben
  724. - allocreg zaehlt bei Nutzung von erweiterten Adressierungsarten als
  725.   zerstoerend; sollte damit jetzt halbwegs stabil sein; allerdings duerften
  726.   noch internal errors, die aber wohl nichts mehr bedeuten, drin sein
  727. - allocreg/freereg von Registervariablen wird aus Code entfernt und internal
  728.   errors sind beseitig; sollte nur Effekt haben, wenn Returnregister als
  729.   Registervariable verwendet wird
  730. - bei initialisierten Unionen werden jetzt auch die uebrigen Werte aufgefuellt
  731. - bei initialisierten auto Strukturen und Unionen duerfen auch Strukturen/
  732.   Unionen gleichen Typs angegeben werden
  733. - die Kopierroutinen sollten jetzt in (fast?) allen Faellen korrekt
  734.   funktionieren und teilweise auch schneller sein
  735. - Fehler mit auto arrays der Form a[]=... behoben; der Offset wurde nicht
  736.   hochgezaehlt
  737. - difftime in der Math Library (cla68k)
  738. - einige ueble Fehler aus dem frontend fuer amiga68k entfernt (vca68k)
  739. - unbenannte Bitfelder werden bei Initialisierungen jetzt uebergangen
  740. - strengere Pruefung bei Zuweisungen zwischen Zeigern mit verschiedenen
  741.   Qualifiern
  742. - Funktionsdefinitionen nach altem Stil erzeugen keinen Prototype mehr
  743. - float Parameter in alten Funktionsdefinitionen werden korrekt behandelt
  744. - diverse Aenderungen bei der Belegung von Registervariablen; gibt jetzt
  745.   Register etwas leichter her
  746.  
  747.  
  748. Aenderungen seit V0.2h
  749.  
  750. - Fehler beim Kommaoperator behoben und Meldung bei fehlenden sidefx
  751. - Konvertierungsroutinen fuer target data types geaendert
  752. - Routinen fuer Fehler/Warnungen akzeptieren jetzt beliebige Parameterlisten
  753. - Initialisierungen wie (cast)&var werden erlaubt (evtl. Probleme, wenn
  754.   verschiedene Pointer existieren)
  755. - die Adresse eines Arrays kann jetzt ermittelt werden
  756. - Ueberpruefung der Gleichheit von Typen verbessert
  757. - Registerbelegung bei return verbessert
  758. - ueberfluessige Warnung bei nicht initialisierter const extern Variable
  759.   entfernt
  760. - Franks div/mod in vc.lib eingebaut (cla68k)
  761. - Fliesskomma-returnwerte nur noch in fp0, wenn fuer fpu generiert wird (cga68k)
  762. - Stringkonstanten sind nicht mehr const char[] sondern char[]
  763. - vc versteht nun -l Option (vca68k)
  764. - printf/scanf durch leicht veraenderte Versionen aus libnix ersetzt (cla68k)
  765. - Anfang einer Mathelibrary fuer 68881 (cla68k)
  766. - (hoffentlich) korrekte floating point->integer Rundung bei FPU (cga68k)
  767.  
  768.  
  769. Aenderungen seit V0.2g
  770.  
  771. - Fehler bei Registerbelegung in totem Code behoben
  772. - Fehler bei Registerbelegung in switch-statements behoben
  773. - boeser Fehler bei Variablen mit nicht-Register-return-values behoben
  774. - vc.lib: Ctrl-C wird erkannt (manchmal) (cla68k)
  775. - vc.lib: malloc() verbessert (cla68k)
  776. - vc.lib: limits.h korrigiert (cla68k)
  777. - vc.lib: time.h und time-Funktionen eingebaut (cla68k)
  778. - keine Warnung mehr bei const typedefs
  779. - Warnung bei Initialisierung von typedefs
  780. - verschiedene Aenderungen bei der Behandlung von storage-classes
  781. - globale static Variablen werden jetzt nicht mehr exportiert
  782. - storage-classes in Prototypen werden beachtet
  783. - const Variablen werden nicht mehr als Konstanten behandelt (war fehlerhaft)
  784. - Fehler in union atyps behoben (vuchar war zchar statt zuchar, argh!)
  785. - string concatenation eingebaut
  786. - Umwandlung unsigned->floating point mit FPU korrigiert (cga68k)
  787. - Vergleiche bei unsigned werden jetzt korrekt behandelt (cga68k)
  788. - bessere Behandlung von Funktionsprototypen
  789. - Zuweisungen zwischen Funktions- und Datenzeigern sind nicht mehr erlaubt
  790.  
  791.  
  792. Aenderungen seit V0.2f
  793.  
  794. - -snma entfernt (cga68k)
  795. - einige Vereinfachungen im Codegenerator wegen reg/freg-Benutzung (cga68k)
  796. - Entfernung einiger alter Codefragmente im Codegenerator (cga68k)
  797. - Abfrage bei malloc() eingebaut
  798. - einige Fehler bei der IC-Generierung im Zusammenhang mit Registerbelegung
  799.   behoben
  800. - Fehlerbehandlung verbessert; nach -maxerror=n (default 10) Fehlern
  801.   wird Uebersetzung abgebrochen (bei 0 wird nicht abgebrochen)
  802. - -ansi unterdrueckt unwichtige Warnungen und Warnungen mit ANSI-Verletzung
  803.   werden als Fehler behandelt
  804. - Flags loeschen jetzt durch &=~
  805. - Zuweisungen von Arrays werden korrekt(er) behandelt (cga68k)
  806. - Zuweisungen von groesseren Typen geaendert, muss aber noch optimiert
  807.   werden. (cga68k)
  808. - falscher Returncode in alg_opt() korrigiert
  809. - Behandlung von const-Konstanten korrigiert
  810. - Meldung, wenn main() nicht int ist
  811. - arithmetik mit void * nicht mehr erlaubt
  812. - casting nach void erlaubt
  813.  
  814.  
  815. Aenderungen seit V0.2e
  816.  
  817. - Nutzung von 680x0-Adressierungsarten eingebaut (cga68k)
  818. - Schreibweise displ(ax) durch (displ,ax) ersetzt (cga68k)
  819. - Nutzung von reg/freg; dadurch kein zusaetzlicher Pass noetig (cga68k)
  820.  
  821.  
  822. Aenderungen seit V0.2d
  823.  
  824. - Typpruefung bei Zuweisungen verbessert und nun auch bei Initialisierungen
  825. - freed free Register teilweise behoben (?)
  826. - Deklarationen von Prototypen ohne Typ werden bemaekelt
  827. - Abhanegigkeit in eigenen Include-Dateien behoben
  828. - Fehler bei arithmetischen Operationen behoben (cga68k)
  829. - falsche Fehlermeldung bei unsigned Typ als Schleifenbedingung
  830. - / und % wird nun auch mit 68000 unterstuetzt (wenn auch ineffizient) (cga68k)
  831. - Fehler bei ADDI2P und SUBIFP behoben
  832. - Fehler (mit DREFOBJ) bei Zusammenfassung op x,y->reg;move reg->z behoben
  833. - Optionen, die einen Parameter benoetigen, muessen jetzt -opt=parameter
  834.   geschrieben werden, also z.B. vbcc -cpu=68020 file.c
  835.   (das war noetig, um das Frontend und Wildcards zu vereinfachen)
  836. - enumerations eingebaut; noch einfach ohne grosse Tests, Tags werden ignoriert
  837. - arithmetische const Typen werden in Ausdruecken als Konstanten behandelt
  838.  
  839.  
  840. Aenderungen seit V0.2c
  841.  
  842. - -noa4 Option hinzugekommen (cga68k)
  843. - Fehler beim Vertauschen von COMPARE-Argumenten und mustrepeat behoben (cga68k)
  844. - Fehler bei vorzeitiger Registerfreigabe bei POSTINC/POSTDEC behoben
  845. - Fehler bei mehreren Variablendeklarationen mit Funktionen behoben
  846. - Fehler bei dc float|double behoben (cga68k)
  847. - Fehler bei sections und dc/ds behoben (cga68k)
  848. - Fehler bei Rechnungen mit FP-Registern behoben (cga68k)
  849. - diverse Fehler bei a op= b behoben
  850. - jetzt hoffentlich immer korrekte Verwendung von lsl/lsr/asr (cga68k)
  851. - vbcc hat sich endlich erfolgreich selbst kompiliert
  852. - Fliesskommakonstanten eingebaut; Berechnung aber noch zu ungenau
  853. - Deklaration fuer Bitfields eingebaut; werden aber noch als Integers behandelt
  854. - Fehler bei interner Verarbeitung von Fliesskommazahlen behoben
  855. - Deklarationen der Form unsigned a; extern a; etc. werden zugelassen
  856. - Anfaenge einer eigenen C-Library
  857.  
  858.  
  859. Volker (volker@vb.franken.de)
  860.  
  861.